package com.glp.work.flow.contract.builder;

import java.io.Serializable;

public class Mark implements Serializable, Cloneable {

  private static final long serialVersionUID = 8423732874913475214L;

  private String name;
  private String fontFamily;
  private Integer fontSize;
  private String color;
  private Boolean bold;
  private Boolean italic;
  
  private Object value;
  private String evl;
  
  private Table table;

  @Override
  public Mark clone() {
    Mark mark = new Mark();
    mark.name = this.name;
    mark.fontFamily = this.fontFamily;
    mark.fontSize = this.fontSize;
    mark.color = this.color;
    mark.bold = this.bold;
    mark.italic = this.italic;
    mark.value = this.value;
    mark.evl = this.evl;
    if(table != null) {
      mark.table = this.table.clone();
    }
    return mark;
  }
  
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getFontFamily() {
    return fontFamily;
  }

  public void setFontFamily(String fontFamily) {
    this.fontFamily = fontFamily;
  }

  public Integer getFontSize() {
    return fontSize;
  }

  public void setFontSize(Integer fontSize) {
    this.fontSize = fontSize;
  }

  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public Boolean getBold() {
    return bold;
  }

  public void setBold(Boolean bold) {
    this.bold = bold;
  }

  public Boolean getItalic() {
    return italic;
  }

  public void setItalic(Boolean italic) {
    this.italic = italic;
  }

  public Object getValue() {
    return value;
  }

  public void setValue(Object value) {
    this.value = value;
  }

  public String getEvl() {
    return evl;
  }

  public void setEvl(String evl) {
    this.evl = evl;
  }
  
  public Table getTable() {
    return table;
  }
  
  public void setTable(Table table) {
    this.table = table;
  }

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Mark [name=");
		builder.append(name);
		builder.append(", fontFamily=");
		builder.append(fontFamily);
		builder.append(", fontSize=");
		builder.append(fontSize);
		builder.append(", color=");
		builder.append(color);
		builder.append(", bold=");
		builder.append(bold);
		builder.append(", italic=");
		builder.append(italic);
		builder.append(", value=");
		builder.append(value);
		builder.append(", evl=");
		builder.append(evl);
		builder.append(", table=");
		builder.append(table);
		builder.append("]");
		return builder.toString();
	}
}